removed a few unneeded lines
authorLars Hamann <lars@src.gnome.org>
Thu, 30 Jul 1998 10:52:35 +0000 (10:52 +0000)
committerLars Hamann <lars@src.gnome.org>
Thu, 30 Jul 1998 10:52:35 +0000 (10:52 +0000)
* gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkclist.c

index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index c78b3fa725dbcd7659ab4d9f5b733b619f0c6f31..527dc7f5a06b06b06162f06449ccb6a9d91398f9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul 30 12:39:36 1998  Lars Hamann  <lars@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_motion): removed a few unneeded lines
+
 Wed Jul 29 23:31:50 1998  Lars Hamann  <lars@gtk.org>
 
        * gtk/gtkclist.c (gtk_clist_motion): column resize now works with
index ecf54b04ea8c03340e97190ef9eb2502367d2f72..b7c8786bd26ad0d6fa2e6ea551d68029dda1a066 100644 (file)
@@ -2266,7 +2266,7 @@ gtk_clist_finalize (GtkObject * object)
  *   gtk_clist_expose
  *   gtk_clist_button_press
  *   gtk_clist_button_release
- *   gtk_clist_button_motion
+ *   gtk_clist_motion
  *   gtk_clist_size_request
  *   gtk_clist_size_allocate
  */
@@ -2964,8 +2964,8 @@ gtk_clist_motion (GtkWidget * widget,
            x = event->x;
 
          new_column_width (clist, i, &x, &visible);
-         /* Welcome to my hack!  I'm going to use a value of x_drage = -99999 to
-          * indicate the the xor line is already no visible */
+         /* Welcome to my hack! I'm going to use a value of x_drag = -99999
+          * to indicate that the xor line is already invisible */
          if (!visible && clist->x_drag != -99999)
            {
              draw_xor_line (clist);
@@ -3063,25 +3063,12 @@ gtk_clist_motion (GtkWidget * widget,
        }
     }
   
-  if (y < 0)
+  if (ROW_TOP_YPIXEL(clist, row) < 0)
     move_vertical (clist, row, 0);
-  else if (y >= clist->clist_window_height)
+  else if (ROW_TOP_YPIXEL(clist, row) + clist->row_height >
+          clist->clist_window_height)
     move_vertical (clist, row, 1);
-  else if (GTK_CLIST_DRAG_SELECTION (clist))
-    {
-      /* dragging inside clist_window */
 
-      if (ROW_TOP_YPIXEL(clist, clist->focus_row) + clist->row_height <= 0)
-       gtk_clist_moveto (clist, clist->focus_row, -1, 0, 0);
-      else if (ROW_TOP_YPIXEL (clist, clist->focus_row) < 0)
-       gtk_clist_moveto (clist, clist->focus_row, -1, 0, 0);
-      else if (ROW_TOP_YPIXEL (clist, clist->focus_row) >=
-              clist->clist_window_height)
-       gtk_clist_moveto (clist, clist->focus_row, -1, 1, 0);
-      else if (ROW_TOP_YPIXEL (clist, clist->focus_row) + clist->row_height >
-              clist->clist_window_height)
-       gtk_clist_moveto (clist, clist->focus_row, -1, 1, 0);
-    }
   return FALSE;
 }